Install PVE on Armbian

  1. Disable NetworkManager
systemctl stop NetworkManager
systemctl disable NetworkManager
  1. Modified the network config
vim /etc/network/interfaces 

Below is an example:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
hwaddress ether fc:7c:02:28:99:0e
# the address and gateway depends on your network
# address is the ip of your armbian device
# gateway is the ip of your router
address 192.168.10.109/24
gateway 192.168.10.1
  1. Customize the node name of PVE
vim /etc/hostname

eg: R08
  1. Modified the hosts
vim /etc/hosts

eg:
127.0.0.1   localhost
192.168.10.109   R08.proxmox.com R08
::1   localhost ip6-localhost ip6-loopback
fe00::0   ip6-localnet
ff00::0   ip6-mcastprefix
ff02::1   ip6-allnodes
ff02::2   ip6-allrouters

  1. Then, you may reboot you device.
  2. Backup and renew debian source(especially for CN users.)
# Backup the sources.list
mv /etc/apt/sources.list /etc/apt/sources.list.bak
vim /etc/apt/sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
  1. Backup and renew armbian source(especially for CN users.)
    This step is not as same as step 6.
# Backup armbian.list
mv /etc/apt/sources.list.d/armbian.list /etc/apt/sources.list.d/armbian.list.bak
vim /etc/apt/sources.list.d/armbian.list
deb [signed-by=/usr/share/keyrings/armbian.gpg] https://mirrors.tuna.tsinghua.edu.cn/armbian bookworm main bookworm-utils bookworm-desktop
  1. Set the path for command
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  1. Add promox source for armbian
echo "deb https://mirrors.apqa.cn/proxmox/debian/pve bookworm port">/etc/apt/sources.list.d/pveport.list 
They are rsync from mirrors.apqa.cn  
Golbal: https://global.mirrors.apqa.cn (Cloudflare)  
Korea: https://mirrors.apqa.cn  
Hong Kong: https://hk.mirrors.apqa.cn  
China: https://mirrors.lierfang.com  
Germany: https://de.mirrors.apqa.cn
  1. Add trust key for promox source
curl https://mirrors.apqa.cn/proxmox/debian/pveport.gpg -o /etc/apt/trusted.gpg.d/pveport.gpg
  1. Install PVE
apt update && apt install proxmox-ve -y

If there pops any selection windows, you need to select the first choice.
armbian - Proxmox Virtual Environment.jpeg
If everything works fine, you will access to your PVE via https://ip:8006.
Note
If you encounter the following error,

Errors were encountered while processing:  
pve-manager  
proxmox-ve  
E: Sub-process /usr/bin/dpkg returned an error code (1)

Here is a solution.

rm -f /etc/pve/pve-root-ca.pem /etc/pve/priv/pve-root-ca.* /etc/pve/local/pve-ssl.*

pvecm updatecerts -f

service pveproxy restart|

76:86:BA:56:45:A1

https://www.zhou.pp.ua/2023/08/08/n1/